package com.demo.job.job;

import com.demo.job.context.XxlJobHelper;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class DemoXxlJob {


    @XxlJob("beanTest")
    public ReturnT beanTest(String jo) throws Exception{
        XxlJobHelper.log("测试成功Bean test");
        System.out.println("测试"+jo);
        return ReturnT.SUCCESS;
    }
}
